package kr.co.jnu.UND;

import android.content.Context;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceActivity;
import android.preference.PreferenceManager;

public class PrefActivity extends PreferenceActivity {
	SharedPreferences pref;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		addPreferencesFromResource(R.layout.pref);		
	}

	public static String getLength(Context context){

		return PreferenceManager.getDefaultSharedPreferences(context).getString("number", "100");
	}
}
